#include "adc.h"

void adc_test(void)
{
	int val;
	double vol;
	int m, n;
	
	while(1)
	{
		val = adc_read_ain0();
		vol = (double)val/1023*3.3;
		m = (int)vol;
		n = (val - m)*1000;
		printf("vol : %d.%03dv\n\r", m, n);
	}
}



